package top.simonby.iron.core.context;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.web.client.RestTemplate;

/**
 * RestTemplate
 *
 * @author Simon
 */
@Configuration
public class RestTemplateConfiguration {
    @Bean
    @Qualifier("restTemplate")
    @Primary
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
